<?php $this->load->view('templates/backend/header'); ?>
<h3><?php echo $this->lang->line('booking-report-sell');?></h3>
<?php if (isset($flash_message)  && $flash_message!=NULL ): ?>
<div class="alert alert-success"><a class="close" customerAssess-dismiss="alert">x</a><strong><?php echo $flash_message; ?></strong></div>
<?php endif; ?>
<script>
   $(document).ready(function() {
       $("#phone").keyup(function (e) {
            $("#simple-msg-test-code").html('<img src="http://hayageek.com/examples/jquery/ajax-form-submit/loading.gif" />');
            if($("#phone").val().length > 2){
                $.post('/auth/getphone/lists?term=' + $(this).val(), function(data) {
                    if(data == ''){
                       $("#simple-msg-test-code").html('No data');
                    } else {
                        $("#simple-msg-test-code").html(data);
                    }
                });
            }
            
         });
    });
</script>
<?php      
        echo form_label($this->lang->line('phone'), 'phone');
        echo form_input(array('name' => 'phone', 'id' => 'phone', 'value' => '', 'required' => 'required','placeholder' => 'Vui lòng nhập SDT','autocomplete'=>'off'));
        echo form_error('phone');
?>

<div id="simple-msg-test-code"></div>
<?php $this->load->view('templates/backend/footer'); ?>